package schoolDemo3;

import java.io.IOException;

public class App4_3 {
    public static void main(String[] args) {
        int a=100,b=6;
        char open = 0;
        System.out.println("请输入运算符：");
        try {
            open = (char) System.in.read();
        } catch (IOException e) {
            e.printStackTrace();
        }
        switch (open){
            case '+':
                System.out.println(a+"+"+b+"="+a+b);
            case '-':
                System.out.println(a+"+"+b+"="+a+b);
            case '*':

        }
    }
}
